/* 
 * File:   MapObject.h
 * Author: fabienlenoir
 *
 * Created on September 5, 2009, 1:49 AM
 */

#ifndef _MAPOBJECT_H
#define	_MAPOBJECT_H

#include <string>

#include "View.h"
#include "Tile.h"
//class View;

//class Tile;

class MapObject {
public:
    MapObject();
    MapObject(const MapObject& orig);

    virtual void paint(View* v) = 0;

    std::string getName();
    
    void setLocation(Tile *);
    Tile *getLocation() const;
    
    virtual ~MapObject();
protected:
    std::string _name;
    Tile* _location;

};

#endif	/* _MAPOBJECT_H */

